// login.vue
import type { LoginResult } from '@/types/login'
import { http } from '@/utils/http.ts'

export const wxLoginApi = (phoneNumber: string) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data: {
      phoneNumber,
    },
  })
}

export const h5LoginApi = (data: { account: string; password: string }) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login',
    data,
  })
}
